Skip to content

fix(packaging): ship AppStream metainfo so software centres show the licence - #18

Merged
DeepDiver1975 merged 1 commit into
mainfrom
fix/appstream-metainfo
Oct 27, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
fix/appstream-metainfo

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

GNOME Software listed the installed .deb with Unknown License ("may be proprietary") and showed no age rating and no screenshots. It reads all of that from AppStream metainfo, which the package didn't carry.

The .deb now installs /usr/share/metainfo/de.codeforfire.freizeichen.metainfo.xml, generated in build-linux.sh. It carries:

  • project_license MIT, plus a German summary and description
  • homepage and issue tracker links
  • the x-scheme-handler/tel it handles
  • an OARS content rating
  • the release version
  • two README screenshots (dial confirmation and settings)

The id is the reverse-DNS name the macOS bundle already uses, and <launchable> ties it to freizeichen.desktop. The screenshots are fetched from the release tag, so each version shows its own, or from main for a dev build. The release workflow validates the file with appstreamcli validate.

What this can't fix: a .deb opened in GNOME Software before installing it still shows an unknown licence and size. GNOME Software gets those from PackageKit, whose apt backend hard-codes "unknown" as the licence for every package (backends/apt/apt-job.cpp, emitPackageDetail). No package content changes that.

Independent of #17 (the app icon). Both touch build-linux.sh and release.yml, so whichever merges second needs a small rebase.

Before / after (installed app in GNOME Software)

Before: GNOME Software shows Unknown License and no age rating
After: GNOME Software shows the MIT licence, the German description, an age rating and the issue tracker

The after shot predates the screenshots; they were added afterwards. appstreamcli validate passes on the generated file, both offline and with network checks, and zizmor reports nothing.

🤖 Generated with Claude Code

…licence

GNOME Software listed the installed .deb under "Unknown License" and
without description, age rating or screenshots: it reads all of that from
AppStream metainfo, which the package did not carry.

The .deb now installs de.codeforfire.freizeichen.metainfo.xml with the MIT
licence, a German summary and description, homepage and bug tracker, the
tel: handler, an OARS rating, the release and the README screenshots
(fetched from the release tag, or main for a dev build). The release
workflow validates it with appstreamcli.

A .deb opened before installing still shows an unknown licence: PackageKit's
apt backend reports "unknown" for every package, whatever it carries.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant